﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Traceability.Commont.Migrations
{
    public partial class _11_30_01 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SplitRUs",
                columns: table => new
                {
                    SplitWarehousingId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
                    DocumentsDate = table.Column<DateTime>(type: "datetime(6)", nullable: false),
                    DocumentNo = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    ScaleId = table.Column<int>(type: "int", nullable: false),
                    RepositoryID = table.Column<int>(type: "int", nullable: false),
                    ShoppIngId = table.Column<int>(type: "int", nullable: false),
                    WeightNum = table.Column<int>(type: "int", nullable: false),
                    GrossWeight = table.Column<decimal>(type: "decimal(65,30)", nullable: false),
                    Tare = table.Column<decimal>(type: "decimal(65,30)", nullable: false),
                    NetWeight = table.Column<decimal>(type: "decimal(65,30)", nullable: false),
                    Stoct = table.Column<int>(type: "int", nullable: false),
                    Stocts = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SplitRUs", x => x.SplitWarehousingId);
                })
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SplitRUs");
        }
    }
}
